{% extends "SLBackBundle::layout.html.twig" %}

	{% block title %}{{ parent() }} - Projet - Ajout : {% endblock %}
	
	{% block body %}
		<div class="intro">
		<p>
		Ajout d'un nouveau projet.<br />
		Le projet sera ajouté dans la catégorie "non publié".<br />
		</p>
		</div>
		<div class="form">
			<form name="myform" action="{{ path('sl_back_projet_add') }}" method="post" {{ form_enctype(form) }}>
				
				<div class="errorForm">
					{{ form_errors(form) }}
					{% if error != null %}
						<b style="color: red;">{{ error|upper }}</b>
					{% endif %}
				</div>
			
				<div class="page-form">
			<h3> Informations : </h3><br />
				
						<table>
							<tr>
							<td>{{ form_label(form.name, "Nom du projet") }}</td>
							<td>{{ form_widget(form.name) }}</td>
							</tr><tr>
							<td>{{ form_label(form.lieu, "Maître d'ouvrage") }}</td>
							<td>{{ form_widget(form.maitre_ouvrage) }}</td>
							</tr><tr>
							<td>{{ form_label(form.lieu, "Lieu") }}</td>
							<td>{{ form_widget(form.lieu) }}</td>
							</tr><tr>
							<td>{{ form_label(form.date, "Date") }}</td>
							<td>{{ form_widget(form.date) }}</td>
							</tr><tr>
							<td>{{ form_label(form.file, "Image de couverture") }}</td>
							<td>{{ form_widget(form.file) }}</td>
							</tr><tr>
							<td>{{ form_label(form.lieu, "Surface hors oeuvre") }}</td>
							<td>{{ form_widget(form.surface) }}</td>
							</tr>
							</tr><tr>
							<td>{{ form_label(form.lieu, "Mission") }}</td>
							<td>{{ form_widget(form.mission) }}</td>
							</tr>
							</tr><tr>
							<td>{{ form_label(form.lieu, "Coût des travaux") }}</td>
							<td>{{ form_widget(form.cout) }}</td>
							</tr><tr>
							<td>{{ form_label(form.recompense, "Récompense") }}</td>
							<td>{{ form_widget(form.recompense) }}</td>
							</tr>
						</table>
					<br /><br />
					
				<h3> Descriptions : </h3><br />
						<table>
							<tr>
							<td>{{ form_label(form.description_title1, "Titre du paragraphe #1") }}</td>
							<td>{{ form_widget(form.description_title1) }}</td>
							</tr><tr>
							<td>{{ form_label(form.description_1, "Paragraphe #1") }}</td>
							<td>{{ form_widget(form.description_1) }}</td>
							</tr><tr>
							<td>{{ form_label(form.description_title2, "Titre du paragraphe #2") }}</td>
							<td>{{ form_widget(form.description_title2) }}</td>
							</tr><tr>
							<td>{{ form_label(form.description_2, "Paragraphe #2") }}</td>
							<td>{{ form_widget(form.description_2) }}</td>
							</tr><tr>
							<td>{{ form_label(form.description_title3, "Titre du paragraphe #3") }}</td>
							<td>{{ form_widget(form.description_title3) }}</td>
							</tr><tr>

							<td>{{ form_label(form.description_3, "Paragraphe #3") }}</td>
							<td>{{ form_widget(form.description_3) }}</td>
							</tr>
						</table>
					
					Vous pourrez ajouter des images au projet après l'avoir enregistré.
					
					{{ form_rest(form) }}
				
					<input type="submit" value="Enregistrer"/>
				</div>
			</form>
		</div>
	{% endblock %}